import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class Test09 extends StatefulWidget {
  @override
  _Test09State createState() => _Test09State();
}

class _Test09State extends State<Test09> {
  double splideValue = 0;

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Center(
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            Text("值:$splideValue"),
            Slider(
              value: splideValue,
              activeColor: Colors.red,
              inactiveColor: Colors.blue,
              min: 0,
              max: 100,
              divisions: 100,
              label: "$splideValue",
              onChanged: (value) {
                setState(() {
                  splideValue = value;
                });
              },
            )
          ],
        ),
      ),
    );
  }
}
